package com.flash.BusinessData.entity;

public class CashAccrued {
//       --现金应收应付ID
//    cashAccruedId	varchar(20)	NOT NULL primary key,	--主键	添加id时最好写成工具类，自动生成id，CA20220622001
//   --基金ID
//    fundId	varchar(20)	NOT NULL,	--外键	基金代码都是6位数的 如：614587
//    FOREIGN KEY(fundId) REFERENCES fund(fundId),--外键
//   --业务日期
//    businessTime	varchar(20)	NOT NULL,
//   --现金账户
//    cashId	varchar(20)	NOT NULL,	--外键
//    FOREIGN KEY(cashId) REFERENCES cash(cashId),--外键
//   --业务类型
//    businessType	int	not null,		--1为管理费，2为托管费，3为存款利息，4为申购赎回
//   --资金流向
//    fundFlow	int	not null,		--1为流入，-1为流出
//   --总金额
//    money	number(8,2)	NOT NULL
    private String cashAccruedId;
    private String fundId;
    private String businessTime;
    private String cashId;
    private int businessType;
    private  int fundFlow;
    private double money;
    private String accountName;
    public  CashAccrued(){};

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public CashAccrued(String cashAccruedId, String fundId, String businessTime, String cashId, int businessType, int fundFlow, double money) {
        this.cashAccruedId = cashAccruedId;
        this.fundId = fundId;
        this.businessTime = businessTime;
        this.cashId = cashId;
        this.businessType = businessType;
        this.fundFlow = fundFlow;
        this.money = money;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getCashAccruedId() {
        return cashAccruedId;
    }

    public void setCashAccruedId(String cashAccruedId) {
        this.cashAccruedId = cashAccruedId;
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public String getBusinessTime() {
        return businessTime;
    }

    public void setBusinessTime(String businessTime) {
        this.businessTime = businessTime;
    }

    public String getCashId() {
        return cashId;
    }

    public void setCashId(String cashId) {
        this.cashId = cashId;
    }

    public int getBusinessType() {
        return businessType;
    }

    public void setBusinessType(int businessType) {
        this.businessType = businessType;
    }

    public int getFundFlow() {
        return fundFlow;
    }

    public void setFundFlow(int fundFlow) {
        this.fundFlow = fundFlow;
    }


    @Override
    public String toString() {
        return "CashAccrued{" +
                "cashAccruedId='" + cashAccruedId + '\'' +
                ", fundId='" + fundId + '\'' +
                ", businessTime='" + businessTime + '\'' +
                ", cashId='" + cashId + '\'' +
                ", businessType=" + businessType +
                ", fundFlow=" + fundFlow +
                ", money=" + money +
                '}';
    }
}
